import type {CFormGroupProps} from "@/components/CProForm/CFormItem/type";
import color from "@/utils/color";

const fields: CFormGroupProps<any>[] = [
  {
    itemList: [
      {
        name: "roleName",
        label: "角色名称",
        labelAlign: "right",
        rules: [
          {
            message: "角色名称是必填项",
            required: true
          }
        ],
        width: "md",
        placeholder: "请输入角色名称",
      },
      {
        name: "color",
        label: "颜色",
        labelAlign: "right",
        type: "select",
        width: 200,
        rules: [
          {
            message: "值是必填项",
            required: true
          }
        ],
        options: color,
      },
    ]
  },
]
export default fields;
